home *** CD-ROM | disk | FTP | other *** search
- /* script for GEnie */
-
- char AccountNumber[40];
- char AccountPassword[40];
- char PhoneNumber[40];
-
- main()
- {
- Cls();
- Echo("Please wait...\r\n", 16);
- Echo("Logging on to GEnie\r\n", 21);
- LocalEcho(1);
- Data(7);
- Parity('E');
- Stop("1");
-
- StrCpy(GenieUser(), AccountNumber);
- StrCpy(GeniePass(), AccountPassword);
- if (!AccountNumber[0] || !AccountPassword[0])
- {
- Echo("Account information incomplete!\r\n");
- return;
- }
- StrCpy(GeniePhone(), PhoneNumber);
- if (PhoneNumber[0])
- {
- Dial(PhoneNumber);
- }
- else
- {
- Echo("No phone number specified in Services Setup!\r\n");
- return;
- }
- Wait(2);
- ScriptOut("HHH");
- In("U", 30);
- ScriptOut(GenieUser());
- ScriptOut(",");
- ScriptOut(GeniePass());
- ScriptOut("\r");
- }
-
- ScriptOut(char *string)
- {
- Echo(string, StrLen(string));
- Out(string, StrLen(string));
- }
-
-